package com.itheima.d3_homework.timu3;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<Person> list1 = new ArrayList<>();
        ArrayList<Student> list2= new ArrayList<>();
        ArrayList<JavaStudent> list3 = new ArrayList<>();
        ArrayList<UIStudent> list4 = new ArrayList<>();
        ArrayList<Teacher> list5 = new ArrayList<>();
        ArrayList<JavaTeacher> list6 = new ArrayList<>();
        ArrayList<UITeacher> list7 = new ArrayList<>();

        print(list1);
        print(list2);
        print(list3);
        print(list4);
        print(list5);
        print(list6);
        print(list7);
        System.out.println("=============");

        print1(list1);
        print1(list2);
        print1(list3);
        print1(list4);
        print1(list5);
        print1(list6);
        print1(list7);
        System.out.println("============");
//        print2(list1);
        print2(list2);
        print2(list3);
//        print2(list4);
//        print2(list5);
//        print2(list6);
//        print2(list7);
        System.out.println("============");
        print3(list1);
        print3(list2);
        print3(list3);
//        print3(list4);
//        print3(list5);
//        print3(list6);
//        print3(list7);

    }
        public  static  void print(ArrayList<?>list){

    }
    public  static  void  print1(ArrayList<? extends Person> list){

    }
    public static  void  print2(ArrayList<? extends  Student>list){

    }
    public  static  void  print3(ArrayList<? super  JavaStudent>list){

    }

}
class Person{

}
class  Student extends  Person{

}
class JavaStudent extends  Student{

}
class UIStudent extends  Person{

}
class  Teacher extends Person{

}
class  UITeacher extends  Person{

}
class  JavaTeacher extends  Person{

}